import { RequestData, GET, POST } from '@/utils/request-data';

const requestData = Object.create(RequestData);
requestData.setBaseUrl('/erp/dealer/passport');

export const toLogin = () => requestData.base('/toLogin', GET);
export const login = params => requestData.base('/login', POST, params);
export const logout = params => requestData.base('/logout', POST, params);
export const register = params => requestData.base('/register', POST, params);
